#include<iostream>
#include<string.h>
using namespace std;
class Employee
{
	private:
		char name[20];
		char address[100];
		char city[50];
		int postCode;
	public:
		Employee();
		void setName(char*);
		void display()const;
};
void Employee::setName(char *a)
{
	strcpy(this->name,a);
}
void Employee::display()const
{
	cout<<"name:"<<this->name<<endl;
	cout<<"address:"<<this->address<<endl;
	cout<<"city:"<<this->city<<endl;
	cout<<"post code:"<<this->postCode<<endl;
}
Employee::Employee()
{
	cout<<"Please enter the name,address,city,postcode."<<endl;
	cin>>name>>address>>city>>postCode;
}
int main()
{
	Employee a;
	a.display();
	char tempName[20];
	cout<<"Please enter the name you want to change to."<<endl;
	cin>>tempName;
	a.setName(tempName);
	a.display();
	return 0;
}
